import request from '@/Utils/request'

// 获取工单列表
export const getOrdersList = (data) => {
  return request.get('/api/task-service/task/search', { params: { ...data } })
}

// 工单搜索
export const searchOrder = params => request.get('/api/task-service/task/search', { params })

// 获取运营人员列表
export const getOperatorList = innerCode => request.get(`/api/user-service/user/operatorList/${innerCode}`)

// 获取工单配置阈值
export const getOrderConfigNum = () => request.get('/api/task-service/task/supplyAlertValue')

// 设置工单配置阈值
export const setOrderConfigNum = data => request.post('/api/task-service/task/autoSupplyConfig', data)

// 获取补货清单列表
export const getRepList = innerCode => request.get(`/api/vm-service/channel/channelList/${innerCode}`)

// 获取工单详情
export const getTaskInfo = taskId => request.get(`/api/task-service/task/taskInfo/${taskId}`)
